}
i = 0;
+
QUEUE_FOR_EACH(&waypt_head, elem, tmp) {
waypoint *wpt;
char *ident;
} else {
icon = mps_find_icon_number_from_desc(wpt->icon_descr, PCX);
}
+
/* For units that support tiny numbers of waypoints, just
* overwrite that and go very literal.
*/
}
i++;
}
+
if ((ret = GPS_Command_Send_Waypoint(portname, way, n, waypt_write_cb)) < 0) {
fatal(MYNAME ":communication error sending wayoints..\n");
}
{
int i;
+ if (NULL == s) {
+ return 0;
+ }
+
for (i = 0; i < sizeof(d103_icons) / sizeof(d103_icons[0]); i++) {
if (0 == case_ignore_strcmp(s, d103_icons[i]))
return i;